package com.guoguo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.guoguo.entity.InviteRelation;

public interface InviteRelationMapper {
    int deleteByPrimaryKey(String inviteId);

    int insert(InviteRelation record);

    InviteRelation selectByPrimaryKey(String inviteId);

    InviteRelation findInviteRelation(InviteRelation inviteRelation);

    List<InviteRelation> selectAll();

    int updateByPrimaryKey(InviteRelation record);

	/**
	 * @param 查询注册的用户是否被邀请过
	 * @return
	 */
	List<String> selectUserIsHaveSrcUser(@Param("phone")String phone);

	/**
	 * @param 更新邀请人的状态
	 * @return
	 */
	Integer updateStatus(@Param("isScrUser") String isScrUser);
}